* Figure 3
graph box pctcrossb2,over(era) ytitle("Crossbench dissent rate")

* TABLE 1
gen notwin = (next==0)
replace notwin = . if next==.
gen winnew = (next==2)
replace notwin = . if next==.

mlogit next pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L",vce(clus mpid) base(1)
mlogit next pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C",vce(clus mpid) base(1)

regress notwin pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L",vce(clus mpid) 
regress notwin pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C",vce(clus mpid) 

regress winnew pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L",vce(clus mpid) 
regress winnew pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C",vce(clus mpid) 

* Appendix A
gen mmd = (mag>1)
replace mmd = . if mag==.
tsset mpid year
xtreg pctcrossb mmd i.parl_start if era<=3&everswitch==0&party2=="C",vce(clus mpid) fe

* APPENDIX B (early v late career)
sort mpid year
egen nterms = seq(),by(mpid)

regress notwin pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L"&nterms<=3,vce(clus mpid) 
regress notwin pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L"&nterms>3,vce(clus mpid) 

regress notwin pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C"&nterms<=3,vce(clus mpid) 
regress notwin pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C"&nterms>3,vce(clus mpid) 

regress winnew pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L"&nterms<=3,vce(clus mpid) 
regress winnew pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="L"&nterms>3,vce(clus mpid) 

regress winnew pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C"&nterms<=3,vce(clus mpid) 
regress winnew pctcrossb borough i.country_id i.year if era<=3&everswitch==0&party2=="C"&nterms>3,vce(clus mpid) 

